<section class="wrapper">
  <!-- page start-->
  <div class="row">
    <div class="col-lg-12">
      <section class="panel">
        <header class="panel-heading">
          查 看&nbsp&nbsp <a href="/admin/academies/<%= @academy.id %>/edit"><button class="btn btn-info" type="button">修改</button></a>
        </header>
        <div class="panel-body">
          <form class="form-horizontal adminex-form" >
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">名称</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" value="<%= @academy.name %>">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">排序</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" value="<%= @academy.sort %>">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">专业</label>
              <div class="col-md-10">
                <%
                  majors = get_data_by_pid('academy_id',@academy.id,Major).map { |e| e.name }
                %>
                <textarea type="text" class="form-control"><%= majors.join(',') unless majors.empty? %></textarea>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 col-sm-2 control-label">状态</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" value="<%= get_dict(:status)[@academy.status.to_s] %>">
              </div>
            </div>
          </form>
        </div>
      </section>
    </div>
  </div>
  <!-- page end-->
</section>